#ifndef typedef_h
#define typedef_h

#include <string>
#include <tchar.h>

typedef unsigned short USHORT;
typedef unsigned char UCHAR;

// http://www.liquid-technologies.com/Reference/XmlDataBinding/source/API/CPP/Key%20Concepts/tstring.htm
namespace std
{
#ifdef UNICODE 
	typedef wstring tstring;
#else
	typedef string tstring;
#endif
};

#ifdef UNICODE
typedef unsigned short TBYTE;
#else
typedef unsigned char TBYTE;
#endif

#endif // typedef_h